/**
 *  Copyright 2013 Nate Dierk
 *
 *  COMP 590 -- Fall 2013
 */

#include "GContext.h"
#include "GColor.h"
#include "GIRect.h"
#include "GBitmap.h"

 //class GColor;
 //class GIRect;



int main(){

	GContext* ctx = GContext::Create(10, 10);

	if (!ctx){
		printf("Failed on GContext::Create!\nAbort!\nAbort!!!!!\n\n");
		return -1;
	} else {
		printf("1  made context!\n");
	}

	GColor white    = GColor::Make(1.0f, 1.0f, 1.0f, 1.0f);
	GColor grey     = GColor::Make(1.0f, 0.5f, 0.5f, 0.5f);
	GColor red      = GColor::Make(1.0f, 1.0f, 0.0f, 0.0f);
	GColor half_red = GColor::Make(0.5f, 1.0f, 0.0f, 0.0f);

	GPixel w = GPixel_PackColor(white);
	GPixel g = GPixel_PackColor(grey);
	GPixel r = GPixel_PackColor(red);
	GPixel h_r = GPixel_PackColor(half_red);

	GPixel_Blend(&w, h_r, SRC_OVER);

}